forum

home / developersection / forums / send javascript function variable with form

Send javascript function variable with form

Samuel Fernandes 2718 12-Mar-2013

Hi Everyone!

I need to send a variable returned from a JavaScript function with a form.

<form name="RegForm"  method="post" action="/validate_accountinfo.php" onsubmit="send()">
</form>


function send()
{
   var number = 5;
   return number;
}
In the validate_accountinfo.php I want to return the value of the function. How to do this?

Thanks for advance.


Updated on 12-Mar-2013
Can you answer this question?

Answer

1 Answers

Liked By